<?php 
session_start();
include('includes/header.php');
require_once('../classes/user.class.php');
require_once('../classes/bcrypt.class.php');

if($_SERVER['REQUEST_METHOD'] == "POST"){
    $user = new User();
    $status = $user->loginUser($_POST['username'], $_POST['password']);
    //echo($status);
}

?>


<div  id="main" role="main">
    <div id="login">
        <form action="#" method="POST">
            <label for="username">Username</label> 
            <input type="text" id="username" name="username"/>
            <label for="password">Password</label> 
            <input type="password" id="password" name="password"/>
            <input type="submit" value="login"/>
        </form>
    </div>
</div>


<?php include('includes/footer.php');?>